package cv.vender.para;

import java.util.ArrayList;
import java.util.List;

/**
 * 测试下位机握手时，使用的参数对象
 * @author Administrator
 *
 */
public class clsADCPara
{
	private int counterpoise;//单位 g
	private int AdVal;
	private int buttonid;

	private int labid;

	public int getCounterpoise() {
		return counterpoise;
	}

	public void setCounterpoise(int counterpoise) {
		this.counterpoise = counterpoise;
	}

	public int getAdVal() {
		return AdVal;
	}

	public void setAdVal(int adVal) {
		AdVal = adVal;
	}

	private static List<clsADCPara> adc_val_lst =new ArrayList<clsADCPara>();


	public static List<clsADCPara> getAdc_val_lst() {
		return adc_val_lst;
	}

	public static void setAdc_val_lst(List<clsADCPara> adc_val_lst) {
		adc_val_lst = adc_val_lst;
	}

	public static clsADCPara FindTheSameObjByCounterpoise(clsADCPara para) {
		for (clsADCPara obj:adc_val_lst)
		{
			if(para.counterpoise==obj.counterpoise)
			{
				return obj;
			}
		}
		return null;
	}

	public int getButtonid() {
		return buttonid;
	}

	public void setButtonid(int buttonid) {
		this.buttonid = buttonid;
	}

	public int getLabid() {
		return labid;
	}

	public void setLabid(int labid) {
		this.labid = labid;
	}
}
